/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_tj_inoutuser")
//@NamedQueries({@NamedQuery(name = "TTjInoutuser.findAll", query = "SELECT t FROM TTjInoutuser t"), @NamedQuery(name = "TTjInoutuser.findById", query = "SELECT t FROM TTjInoutuser t WHERE t.id = :id"), @NamedQuery(name = "TTjInoutuser.findByCyear", query = "SELECT t FROM TTjInoutuser t WHERE t.cyear = :cyear"), @NamedQuery(name = "TTjInoutuser.findByCmonth", query = "SELECT t FROM TTjInoutuser t WHERE t.cmonth = :cmonth"), @NamedQuery(name = "TTjInoutuser.findByCday", query = "SELECT t FROM TTjInoutuser t WHERE t.cday = :cday"), @NamedQuery(name = "TTjInoutuser.findByChour", query = "SELECT t FROM TTjInoutuser t WHERE t.chour = :chour"), @NamedQuery(name = "TTjInoutuser.findByScode", query = "SELECT t FROM TTjInoutuser t WHERE t.scode = :scode"), @NamedQuery(name = "TTjInoutuser.findByUsernumber", query = "SELECT t FROM TTjInoutuser t WHERE t.usernumber = :usernumber"), @NamedQuery(name = "TTjInoutuser.findByInorout", query = "SELECT t FROM TTjInoutuser t WHERE t.inorout = :inorout"), @NamedQuery(name = "TTjInoutuser.findBySname", query = "SELECT t FROM TTjInoutuser t WHERE t.sname = :sname")})
public class TTjInoutuser implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "cyear")
    private String cyear;
    @Column(name = "cmonth")
    private String cmonth;
    @Column(name = "cday")
    private String cday;
    @Column(name = "chour")
    private String chour;
    @Column(name = "scode")
    private String scode;
    @Column(name = "usernumber")
    private Integer usernumber;
    @Column(name = "inorout")
    private String inorout;
    @Column(name = "sname")
    private String sname;

    public TTjInoutuser() {
    }

    public TTjInoutuser(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCyear() {
        return cyear;
    }

    public void setCyear(String cyear) {
        this.cyear = cyear;
    }

    public String getCmonth() {
        return cmonth;
    }

    public void setCmonth(String cmonth) {
        this.cmonth = cmonth;
    }

    public String getCday() {
        return cday;
    }

    public void setCday(String cday) {
        this.cday = cday;
    }

    public String getChour() {
        return chour;
    }

    public void setChour(String chour) {
        this.chour = chour;
    }

    public String getScode() {
        return scode;
    }

    public void setScode(String scode) {
        this.scode = scode;
    }

    public Integer getUsernumber() {
        return usernumber;
    }

    public void setUsernumber(Integer usernumber) {
        this.usernumber = usernumber;
    }

    public String getInorout() {
        return inorout;
    }

    public void setInorout(String inorout) {
        this.inorout = inorout;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TTjInoutuser)) {
            return false;
        }
        TTjInoutuser other = (TTjInoutuser) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TTjInoutuser[id=" + id + "]";
    }

}
